#ifndef __GTIMER_H
#define __GTIMER_H

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "driver/gptimer.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "led.h"

extern QueueHandle_t queue;

typedef struct 
{
    uint64_t event_count;
}gptimer_event_t;

bool IRAM_ATTR gtimer_callback(gptimer_handle_t timer, const gptimer_alarm_event_data_t *edata, void *user_ctx);
void gtimer_init(uint64_t count,uint64_t resolution);


#endif
